  /**
   * 
   * @module description:后端从数据库获取轮廓信息文件
   * @author 吴迪嘉
   */
const theDatabase = require('../../config/db.js').theDb; //引入数据库

const circle_area = theDatabase.import('../../schema/circle_area.js'); 
class CircleModel {
    static async getCircleByProjectnum(project_num) {

     var data=[]
    const AllSelectData = await circle_area.findAll({
        where:{
            project_num:project_num
        }
    })
    let res = AllSelectData.map(item=>{
        return item = item.dataValues
      })
    for (let i of res){
       var A=[i.lng,i.log]
      data.push(A)

    }
    return data
}

}


module.exports = CircleModel